package org.sean.framework.es;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 查询条件
 */
@Data
public class QueryExample {
    private boolean onlyId;

    /**
     * 返回字段
     */
    private String[] includeFields;
    /**
     * 返回字段
     */
    private String[] excludeFields;
    /**
     * Terms
     */
    private List<QueryItem> items = new ArrayList<>();

    public void addItem(QueryItem item) {
        items.add(item);
    }

}
